package com.stylefeng.guns.modular.desktop.service.impl;

import com.stylefeng.guns.modular.desktop.dto.DesktopAlarmList;
import com.stylefeng.guns.modular.desktop.dto.DesktopRealTimeMonitor;
import com.stylefeng.guns.modular.desktop.service.IDesktopService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by lemon on 2018/4/8 0008.
 */
@Service
public class DesktopServiceImpl implements IDesktopService {

    /*TODO 模拟数据*/
    @Override
    public Object realTimeMonitor() {
        DesktopRealTimeMonitor reusult = new DesktopRealTimeMonitor(11,12,13,14,15);
        return reusult;
    }

    /*TODO 模拟数据*/
    @Override
    public Object alarmList() {
        List<DesktopAlarmList> result = new ArrayList<>();
        for (int i = 0; i < 10; i++){
            result.add(new DesktopAlarmList(i%3+1, new Date(),"合肥市蜀山区南天竹花卉"));
        }
        return result;
    }
}
